package cn.layku.web.service.order;

import cn.layku.web.service.order.fallback.OrderFallback;
import cn.layku.web.util.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


@FeignClient(name = "${gateway.order.name}", path = "${gateway.order.path}", url = "${gateway.host}", fallback = OrderFallback.class)
public interface OrderService {

    @PostMapping(value = "/order/add")
    ApiResult<Object> add(@RequestParam Map<String, Object> map);

}
